var InfoView = Class.create({
	initialize: function()
	{
		this.surface = Builder.node('div', {id: 'infoview'});
		
		document.observe('information:view', function(event) { this.render(event.memo) }.bindAsEventListener(this));
	},
	
	render: function(items)
	{		
		var title = "Information for: ";
		
		for(var i=0; i<items.length; i++)
		{
			if(i>0)
				title += ", ";
				
			title += '"'+items[i].label+'"';
		}
		
		this.surface.update(title);
	},
	
	getSurface: function()
	{
		return this.surface;
	}
});